/* 列表页面操作按钮统一样式 */
.action-buttons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: flex-start;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    padding: 0;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
}

.action-btn:active {
    transform: translateY(0);
}

/* 查看按钮 */
.btn-view {
    color: #17a2b8;
    border-color: #17a2b8;
}

.btn-view:hover {
    background-color: #17a2b8;
    color: white;
}

/* 编辑按钮 */
.btn-edit {
    color: #007bff;
    border-color: #007bff;
}

.btn-edit:hover {
    background-color: #007bff;
    color: white;
}

/* 删除按钮 */
.btn-delete {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-delete:hover {
    background-color: #dc3545;
    color: white;
}

/* 补货按钮 */
.btn-restock {
    color: #ffc107;
    border-color: #ffc107;
}

.btn-restock:hover {
    background-color: #ffc107;
    color: #212529;
}

/* 审批按钮 */
.btn-approve {
    color: #28a745;
    border-color: #28a745;
}

.btn-approve:hover {
    background-color: #28a745;
    color: white;
}

/* 激活按钮 */
.btn-activate {
    color: #17a2b8;
    border-color: #17a2b8;
}

.btn-activate:hover {
    background-color: #17a2b8;
    color: white;
}

/* 归还按钮 */
.btn-return {
    color: #fd7e14;
    border-color: #fd7e14;
}

.btn-return:hover {
    background-color: #fd7e14;
    color: white;
}

/* 借出按钮 */
.btn-borrow {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-borrow:hover {
    background-color: #6f42c1;
    color: white;
}

/* 库存状态徽章 */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 12px;
    font-weight: 500;
}

.stock-badge .badge {
    min-width: 40px;
}

.stock-status {
    font-size: 11px;
    font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 0.125rem;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* 表格操作列宽度 */
.table th:last-child,
.table td:last-child {
    width: 140px;
    min-width: 140px;
}

@media (max-width: 768px) {
    .table th:last-child,
    .table td:last-child {
        width: 80px;
        min-width: 80px;
    }
}

/* 批量操作工具栏 */
.batch-toolbar {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: none;
}

.batch-toolbar.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.batch-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.batch-action-btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.batch-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 表格行高亮 */
.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table tbody tr.table-active {
    background-color: rgba(0, 123, 255, 0.1);
}

/* 选择列样式 */
.select-column {
    width: 40px;
    text-align: center;
}

.select-column input[type="checkbox"] {
    transform: scale(1.1);
}

/* 状态徽章增强 */
.status-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

/* 搜索表单增强 */
.search-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.search-form .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.25rem;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #adb5bd;
    margin-bottom: 0;
}

/* 加载状态 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 0.25em solid #f3f3f3;
    border-top: 0.25em solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具提示增强 */
.tooltip {
    font-size: 0.75rem;
}

/* 分页增强 */
.pagination-info {
    color: #6c757d;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 导出按钮组 */
.export-buttons {
    display: flex;
    gap: 0.25rem;
}

.export-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* 全局：列表操作按钮圆形尺寸（用于查看/编辑/更多...） */
.btn-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.btn-icon i { font-size: 14px; }

/* 全局：“更多”下拉按钮尺寸与隐藏默认箭头 */
.action-dropdown > button.btn {
    padding: 0.25rem;
    width: 32px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.action-dropdown .dropdown-toggle::after {
    display: none !important;
}

/* 全局：资产表容器滚动可视区域，便于浏览更多行 */
.asset-table-container {
    max-height: 78vh; /* 较高的可视高度 */
    min-height: 60vh; /* 保持一定高度 */
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}